﻿using INTEX.DataBase.Tools;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
using System.Data.OracleClient;
using ReflectionStudio.Components.UserControls;
using System.ComponentModel;
namespace WPFExcelReport
{
    public partial class TRAB04
    {
        public TRAB04()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VABKOPF();
            DataContext = MV;
            InitializeComponent();
        } 
        public override void OnEXAUFChg(string vlaue)
        {
            TBMain.Clear();
            if (EXAUF.Length < 8)
                return;
            dwData = TBMain.NewRow();
            dwData["ABKMANDANT"] = app.Mandant;
            dwData["ABKAUFKRS"] = EXAUF.Substring(0, 2);
            dwData["ABKAUFLFD"] = EXAUF.Substring(2, 6);
            SResult = TMV.QABK01(dwData);
            MergeData(SResult, true, true);
            base.OnEXAUFChg(vlaue);
        }        
    }
}

